package com.example.function.project.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.project.model.one.ProjectAssetsGroup;
import com.example.function.project.service.IProjectAssetsGroupService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <ProjectAssetsGroupPojo vo>. <br>
 * <p>
 * generate time:2021-7-27 16:02:33
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class ProjectAssetsGroupPojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 主键id
     */
    private Long id;


    /*
     * 项目id
     */
    private Long projectId;


    /*
     * 资产id
     */
    private Long assetsId;


    /*
     * 状态：0-未分析，1-已分析
     */
    private Integer status;


    /*
     * 导入需求数量
     */
    private Integer importNum;


    /*
     * 创建人id
     */
    private Long userId;


    /*
     * 创建时间
     */
    private java.util.Date createTime;


    /**
     * 实体对象复制到数据对象
     */
    public static ProjectAssetsGroupPojo wrapper(ProjectAssetsGroup projectAssetsGroup) {
        ProjectAssetsGroupPojo projectAssetsGroupPojo = new ProjectAssetsGroupPojo();
        BeanUtils.copyProperties(projectAssetsGroup, projectAssetsGroupPojo);
        final IProjectAssetsGroupService projectAssetsGroupService = (IProjectAssetsGroupService) ApplicationContextProvider.getBean("projectAssetsGroupService");

        return projectAssetsGroupPojo;
    }

}



